package com.yc.hotel.feign.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.yc.hotel.dto.UserInfoDTO;
import com.yc.hotel.service.IUserInfoService;

@RestController
@RequestMapping("/users")
public class UserInfoFeignController {

	@Autowired 
	private IUserInfoService userInfoService;

	@GetMapping("/findByUno")
	UserInfoDTO findByUno(@RequestParam int uno) {
		UserInfoDTO userInfo = userInfoService.findByUno(uno);
		return userInfo;
	}

}
